import request from "@/utils/request";

//添加参数
export function addParameters(data) {
    return request({
        url: '/parameters/create',
        method: 'post',
        data: data
    })

}

//获取参数信息
export function getParameters(projectId, name, id, pageIndex, pageSize) {
    return request({
        url: '/parameters/list',
        method: 'get',
        params: {
            projectId,
            name,
            id,
            pageIndex,
            pageSize
        }

    })
}


//删除参数
export function deleteParameters(id) {
    return request({
        url: `/parameters/delete/${id}`,
        method: 'delete',
    })

}

//更新参数
export function updateParameters(data) {
    return request({
        url: '/parameters/update',
        method: 'post',
        data: data
    })

}